Skip to content

Conversation

petergphillips
Copy link

No description provided.

@@ -10,7 +10,7 @@
<properties>
<version.com.h2database>2.3.232</version.com.h2database>
<version.junit-jupiter>5.11.3</version.junit-jupiter>
<version.org.hibernate.orm>6.6.3.Final</version.org.hibernate.orm>
<version.org.hibernate.orm>6.6.6.Final</version.org.hibernate.orm>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to demonstrate it fails on latest version

entityManager.createNativeQuery("insert into ITEM_WITH_IGNORE(ITEM_ID,ITEM_TYPE) values(12345, 'BOB')").executeUpdate();

final var graph = entityManager.getEntityGraph("ItemWithIgnore.fetch");
final var item = entityManager.find(ItemWithIgnore.class, 12345L, Collections.singletonMap("jakarta.persistence.fetchgraph", graph));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both tests fail here with

java.lang.AssertionError
	at org.hibernate.sql.results.graph.Initializer.getResolvedInstance(Initializer.java:67)
	at org.hibernate.sql.results.graph.embeddable.internal.EmbeddableAssembler.assemble(EmbeddableAssembler.java:40)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant